package com.dykj.fireFighting.web.service.impl;

import com.dykj.fireFighting.common.core.utils.DateUtil;
import com.dykj.fireFighting.web.entity.HaiManGas;
import com.dykj.fireFighting.web.mapper.DevHisGasMapper;
import com.dykj.fireFighting.web.service.DevHisGasService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DevHisGasServiceImpl implements DevHisGasService {
    @Autowired
    private DevHisGasMapper devHisGasMapper;
    @Override
    public int insertDevHisGas(HaiManGas haiManGas) {
        String tableName="dev_his_gas_"+ DateUtil.getYearWeek();
        return devHisGasMapper.insertDevHisGas(tableName,haiManGas);
    }
}
